package com.ce.pms.house.vo;

import com.ce.pms.common.model.SysrefcodeDO;
import com.sitechasia.webx.core.model.IViewObject;
/**
 * 功能描述: CoWorkerVO
 * <p>版权所有：中企动力
 * <p>未经本公司许可，不得以任何方式复制或使用本程序任何部分
 *
 * @author  胡煦
 * Create on:2008-6-27
 * Edit author:
 * Edit on:
 * 修改原因：

 */
public class CoWorkerVO implements IViewObject{
	private static final long serialVersionUID = 1L;

	/**
	 * 协作伙伴ID
	 */
	private Long coWorkerID;

	/**
	 * 参与人ID
	 */
	private Long participantId;

	/**
	 * 组织名称
	 */
	private String name;

	/**
	 * 联系电话
	 */
	private String telephone;

	/**
	 * 组织地址
	 */
	private String address;

	/**
	 * 邮编
	 */
	private String zip;

	/**
	 * 联系人姓名
	 */
	private String contactor;

	/**
	 * 协作伙伴类型：开发商、设计单位、施工单位等,此处为value值
	 */
	private String coworkerTypeValue;

	/**
	 * 协作伙伴类型：开发商、设计单位、施工单位等,此处为Code值
	 */
	private String coworkerTypeCode;

	/**
	 * 创建人
	 */
	private Long creator;

	///查询时使用//////////////////////////////////////////////////////////
	/**
	 * 排序字符串
	 */
	private String orderStr;

	/**
	 * 协作伙伴ID列表串，形如：12,45,67
	 */
	private String coWorkerIDs;

	/**
	 * 该值与coWorkerIDs一起使用。默认为true
	 * 在查询时，如果本值为true,则将会查询coWorkerIDs所有值，否则查询除coWorkerIDs之外的所有值
	 */
	private Boolean isIn=true;
	/////以下方法用于设置协作伙伴信息//////////////////////////////////////////////////////

	/**
	 * 功能描述:设置施工单位<br>
	 * <br>
	 * Create author:罗军林<br>
	 * Create on:2008-7-23<br>
	 * Edit author:<br>
	 * Edit on:<br>
	 * Why:<br>
	 */
	public void setConstructSysrefcode(){
		setCoworkerTypeValue(SysrefcodeDO.CS_CO_WORKER_TYPE_CONSTRUCT);
		setCoworkerTypeCode(SysrefcodeDO.WORKER_TYPE);
	}

	/**
	 * 功能描述:设置设计单位<br>
	 * <br>
	 * Create author:罗军林<br>
	 * Create on:2008-7-23<br>
	 * Edit author:<br>
	 * Edit on:<br>
	 * Why:<br>
	 */
	public void setDesingSysrefcode(){
		setCoworkerTypeValue(SysrefcodeDO.CS_CO_WORKER_TYPE_DESIGN);
		setCoworkerTypeCode(SysrefcodeDO.WORKER_TYPE);
	}

	/**
	 * 功能描述:设置开发商单位<br>
	 * <br>
	 * Create author:罗军林<br>
	 * Create on:2008-7-23<br>
	 * Edit author:<br>
	 * Edit on:<br>
	 * Why:<br>
	 */
	public void setDeveloperSysrefcode(){
		setCoworkerTypeValue(SysrefcodeDO.CS_CO_WORKER_TYPE_DEVELOPER);
		setCoworkerTypeCode(SysrefcodeDO.WORKER_TYPE);
	}

	/**
	 * 功能描述:设置派出所<br>
	 * <br>
	 * Create author:罗军林<br>
	 * Create on:2008-7-23<br>
	 * Edit author:<br>
	 * Edit on:<br>
	 * Why:<br>
	 */
	public void setPoliceSysrefcode(){
		setCoworkerTypeValue(SysrefcodeDO.CS_CO_WORKER_TYPE_POLICE);
		setCoworkerTypeCode(SysrefcodeDO.WORKER_TYPE);
	}

	/**
	 * 功能描述:设置居委会<br>
	 * <br>
	 * Create author:罗军林<br>
	 * Create on:2008-7-23<br>
	 * Edit author:<br>
	 * Edit on:<br>
	 * Why:<br>
	 */
	public void setResidentSysrefcode(){
		setCoworkerTypeValue(SysrefcodeDO.CS_CO_WORKER_TYPE_RESIDENT);
		setCoworkerTypeCode(SysrefcodeDO.WORKER_TYPE);
	}

	/**
	 * 功能描述:设置街道办<br>
	 * <br>
	 * Create author:罗军林<br>
	 * Create on:2008-7-23<br>
	 * Edit author:<br>
	 * Edit on:<br>
	 * Why:<br>
	 */
	public void setStreeSysrefcode(){
		setCoworkerTypeValue(SysrefcodeDO.CS_CO_WORKER_TYPE_STREET);
		setCoworkerTypeCode(SysrefcodeDO.WORKER_TYPE);
	}

	/**
	 * 功能描述:设置监理单位<br>
	 * <br>
	 * Create author:罗军林<br>
	 * Create on:2008-7-23<br>
	 * Edit author:<br>
	 * Edit on:<br>
	 * Why:<br>
	 */
	public void setSuperviseSysrefcode(){
		setCoworkerTypeValue(SysrefcodeDO.CS_CO_WORKER_TYPE_SUPERVISE);
		setCoworkerTypeCode(SysrefcodeDO.WORKER_TYPE);
	}

	//////////////////////////////////////////////////////////////////////////////////

	/**
	 * @return the address
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * @param address the address to set
	 */
	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * @return the contactor
	 */
	public String getContactor() {
		return contactor;
	}

	/**
	 * @param contactor the contactor to set
	 */
	public void setContactor(String contactor) {
		this.contactor = contactor;
	}

	/**
	 * @return the coWorkerID
	 */
	public Long getCoWorkerID() {
		return coWorkerID;
	}

	/**
	 * @param coWorkerID the coWorkerID to set
	 */
	public void setCoWorkerID(Long coWorkerID) {
		this.coWorkerID = coWorkerID;
	}


	/**
	 * @return the creator
	 */
	public Long getCreator() {
		return creator;
	}

	/**
	 * @param creator the creator to set
	 */
	public void setCreator(Long creator) {
		this.creator = creator;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the orderStr
	 */
	public String getOrderStr() {
		return orderStr;
	}

	/**
	 * @param orderStr the orderStr to set
	 */
	public void setOrderStr(String orderStr) {
		this.orderStr = orderStr;
	}

	/**
	 * @return the organizationTypeCode
	 */
	public String getCoworkerTypeCode() {
		return coworkerTypeCode;
	}

	/**
	 * @param organizationTypeCode the organizationTypeCode to set
	 */
	public void setCoworkerTypeCode(String organizationTypeCode) {
		this.coworkerTypeCode = organizationTypeCode;
	}


	/**
	 * @return the participantId
	 */
	public Long getParticipantId() {
		return participantId;
	}

	/**
	 * @param participantId the participantId to set
	 */
	public void setParticipantId(Long participantId) {
		this.participantId = participantId;
	}

	/**
	 * @return the telephone
	 */
	public String getTelephone() {
		return telephone;
	}

	/**
	 * @param telephone the telephone to set
	 */
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	/**
	 * @return the zip
	 */
	public String getZip() {
		return zip;
	}

	/**
	 * @param zip the zip to set
	 */
	public void setZip(String zip) {
		this.zip = zip;
	}

	/**
	 * @return the coworkerTypeValue
	 */
	public String getCoworkerTypeValue() {
		return coworkerTypeValue;
	}

	/**
	 * @param coworkerTypeValue the coworkerTypeValue to set
	 */
	public void setCoworkerTypeValue(String coworkerTypeValue) {
		this.coworkerTypeValue = coworkerTypeValue;
	}

	/**
	 * @return the coWorkerIDs
	 */
	public String getCoWorkerIDs() {
		return coWorkerIDs;
	}

	/**
	 * @param coWorkerIDs the coWorkerIDs to set
	 */
	public void setCoWorkerIDs(String coWorkerIDs) {
		this.coWorkerIDs = coWorkerIDs;
	}

	/**
	 * @return the isIn
	 */
	public Boolean getIsIn() {
		return isIn;
	}

	/**
	 * @param isIn the isIn to set
	 */
	public void setIsIn(Boolean isIn) {
		this.isIn = isIn;
	}



}
